<?php

function start_form() {
    echo '<form action="' . URL_ROOT . 'control-slide/form-1" method="post" >';
}

function start_form2() {
    echo '<form action="' . URL_ROOT . 'control-slide/form-2" method="post"  enctype="multipart/form-data>';
}

function start_slide($i) {
    echo '<div class="template_slide">SLIDE ' . $i . '</div>';
    echo '<select name="slide' . $i . '" >';
}

function option_work($name, $slide_name) {
   
    if ($name == $slide_name) {
        echo'<OPTION selected>' . $name . '';
    }
    else {
         echo'<option>' . $name . '';
    }
}

function option_new($new, $slide_name) {
  if ($new == $slide_name) {
        echo'<OPTION selected>' . $new . '';
    }
    else {
         echo'<option>' . $new . '';
    }
   
}

function void_option() {
    echo'<option>Vide';
}

function add_photo() {
    echo '<a href="' . URL_ROOT . 'create-extra" >Cliquez ici pour ajouter une photo</a>';
}

?>
